PROJECT(demo)

SET(CMAKE_MODULE_PATH ${CMAKE_ROOT}/Modules ${PROJECT_SOURCE_DIR}/modules)

CMAKE_MINIMUM_REQUIRED(VERSION 1.0)
AUX_SOURCE_DIRECTORY(. DIR_SRCS)
ADD_EXECUTABLE(${PROJECT_NAME} ${DIR_SRCS})

FIND_PACKAGE(glib2 REQUIRED)

MARK_AS_ADVANCED(
        glib2_INCLUDE_DIRS
	glib2_LIBRARIES
	)

INCLUDE_DIRECTORIES(${glib2_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${glib2_LIBRARIES})
